<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>{$current['title']}-{$Think.CONFIG.sitename}</title>

    <link href="__PUBLIC__/static/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="__PUBLIC__/static/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/static/css/animate.min.css" rel="stylesheet">
    <include file="Public/commoncss" />

</head>

<body class="gray-bg top-navigation">
<div id="wrapper">
    <div id="page-wrapper" class="gray-bg">
        <div class="row border-bottom white-bg">
            <include file="Public/header" />
        </div>
        <div class="wrapper wrapper-content">
            <div class="row">
                <div class="col-sm-3">
                    <div class="ibox float-e-margins">
                        <include file="Public/setnav" />
                    </div>
                </div>
                <div class="col-sm-9 animated fadeInRight">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>网站设置</h5>

                        </div>
                        <div class="ibox-content">
                            <form class="form-horizontal m-t" action="{:U('update')}" id="myForm">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">系统标题：</label>
                                    <div class="col-sm-8">
                                        <input  name="sitename" class="form-control" type="text" value="{$Think.CONFIG.sitename}" datetype="s"  nullmsg="请填写标题名称！" errormsg="系统标题至少3个字符！" sucmsg="系统标题验证通过！" autocomplete="off">
                                        <span class="help-block m-b-none Validform_checktip"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">系统副标题：</label>
                                    <div class="col-sm-8">
                                        <input  name="title" class="form-control"   type="text" value="{$Think.CONFIG.title}" datetype="*"  nullmsg="请填写系统副标题！" errormsg="系统副标题至少3个字符！" sucmsg="系统副标题验证通过！" autocomplete="off">
                                        <span class="help-block m-b-none Validform_checktip"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">关键字：</label>
                                    <div class="col-sm-8">
                                        <input  name="keywords" class="form-control" type="text" value="{$Think.CONFIG.keywords}" datetype="*"  nullmsg="请填写关键词！" errormsg="关键词至少3个字符,最多600个字符！" sucmsg="关键词验证通过！" autocomplete="off">
                                        <span class="help-block m-b-none Validform_checktip"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">系统描述：</label>
                                    <div class="col-sm-8">
                                        <textarea name="description" id="" cols="20" rows="5" style="resize: none;width:100%" datetype="*"  nullmsg="请填写描述！" sucmsg="描述验证通过！" autocomplete="off">{$Think.CONFIG.description}</textarea>
                                        <span class="help-block m-b-none Validform_checktip"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">底部内容：</label>
                                    <div class="col-sm-8">
                                        <textarea name="footer" id="" cols="20" rows="5" style="resize: none;width:100%" datetype="*"  nullmsg="请填底部内容！" sucmsg="底部内容验证通过！" autocomplete="off">{$Think.CONFIG.footer}</textarea>
                                        <span class="help-block m-b-none Validform_checktip"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">统计代码：</label>
                                    <div class="col-sm-8">
                                        <textarea name="statistics" id="" cols="20" rows="5" style="resize: none;width:100%"  nullmsg="请填写统计代码！" sucmsg="统计代码验证通过！" autocomplete="off">{$Think.CONFIG.statistics}</textarea>
                                        <span class="help-block m-b-none Validform_checktip"></span>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <div class="col-sm-8 col-sm-offset-3">
                                        <button class="btn btn-primary" type="submit">保存设置</button>
                                        <span class="help-block m-b-none " id="dump"></span>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>

                </div>
            </div>
        </div>
        <include file="Public/footer" />
    </div>
</div>
<include file="Public/commonjs" />
<script src="__PUBLIC__/static/js/bootstrap.min.js?v=3.3.5"></script>
<script src="__PUBLIC__/static/js/content.min.js?v=1.0.0"></script>
<script src="__PUBLIC__/static/js/plugins/validate/Validform_v5.3.2.js"></script>
<script>
    $(function() {

        $("#myForm").Validform({
            tiptype:function(msg,o,cssctl){
                if(!o.obj.is("form")){
                    var objtip=o.obj.siblings(".help-block m-b-none .Validform_checktip");
                    cssctl(objtip,o.type);
                    objtip.text(msg);
                }else{
                        var objtip=o.obj.find("#dump");
                        cssctl(objtip,o.type);
                        objtip.text(msg);
                }
            },
            ajaxPost:true
        });

    })
</script>
</body>

</html>